<div class="p-3 mb-3 nav-tabs-custom">

    <div class="row"  style="margin-left: 2%">
        <div class="col-12">
            <h4>下单用户</h4>
        </div>
    </div>
    <hr class="row" >
    <div class="row invoice-info" style="margin-left: 2%">
        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>用户id：</strong>{{$user_data['id']}}</p>
                <p><strong>头像：</strong><a href="{{$user_data['avatar']}}" class="grid-popup-link">
                        <img src="{{$user_data['avatar']}}" style="max-width:30px;max-height:30px" class="img img-thumbnail">
                    </a></p>
            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>手机号：</strong>{{$user_data['phone']}}</p>
                <p><strong>注册时间：</strong>{{$user_data['created_at']}}</p>
            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>昵称：</strong>{{$user_data['nickname']}}</p>
                <p><strong>状态：</strong>{{empty($user_data['status'])?"禁用":"启用"}}</p>

            </address>
        </div>

    </div>
    <div class="row"  style="margin-left: 2%">
        <div class="col-12">
            <h4>订单</h4>
        </div>
    </div>
    <hr class="row" >
    <div class="row invoice-info" style="margin-left: 2%">
        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>订单号：</strong>{{$order_data['order_sn']}}</p>
                <p><strong>支付方式：</strong>{{$order_data['type']}}</p>
                <p><strong>实付金额：</strong>{{$order_data['amount']}}</p>

            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>状态：</strong>{{$order_data['status']}}</p>
                <p><strong>送达时间：</strong>{{$order_data['service_date']}}</p>
                <p><strong>优惠券抵扣：</strong>{{$order_data['discount_price']}}</p>

            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>支付时间：</strong>{{$order_data['pay_time']}}</p>
                <p><strong>订单金额：</strong>{{$order_data['total_price']}}</p>
                <p><strong>上楼费：</strong>{{$order_data['todoor_amount']}}</p>
            </address>
        </div>
    </div>

    <div class="row"  style="margin-left: 2%">
        <div class="col-12">
            <h4>收货信息</h4>
        </div>
    </div>
    <hr class="row" >
    <div class="row invoice-info" style="margin-left: 2%">
        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>收货人：</strong>{{$user_address_data['name']}}</p>
                <p><strong>楼层：</strong>{{$user_address_data['floor']}}</p>
                <p><strong>详细地址：</strong>{{$user_address_data['address']}}</p>
            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>收货电话：</strong>{{$user_address_data['mobile']}}</p>
                <p><strong>门牌号：</strong>{{$user_address_data['house_number']}}</p>
            </address>
        </div>

        <div class="col-sm-4 invoice-col">
            <address>
                <p><strong>楼梯类型：</strong>{{$user_address_data['stair_type']==1?"电梯":"步梯"}}</p>
                <p><strong>定位地址：</strong>{{$user_address_data['locating_address']}}</p>

            </address>
        </div>
    </div>

    <div class="row"  style="margin-left: 2%">
        <div class="col-12">
            <h4>商品信息</h4>
        </div>
    </div>
    <hr class="row" >
    <div class="row invoice-info" style="margin-left: 2%">
        <div class="col-12 table-responsive">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>商品封面</th>
                    <th>商品名称</th>
                    <th>商品分类</th>
                    <th>商品价格</th>
                    <th>下单数量</th>
                    <th>总价</th>
                    <th>实付</th>
                    <th>配送费</th>
                    <th>水票抵扣</th>
                    <th>优惠券抵扣</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($order_detail_data as $key=>$val){?>
                <tr>
                    <td><a href="{{$val['goods_data']['goods_cover']}}" class="grid-popup-link">
                            <img src="{{$val['goods_data']['goods_cover']}}" style="max-width:30px;max-height:30px" class="img img-thumbnail">
                        </a></td>
                    <td>{{$val['goods_data']['goods_title']}}</td>
                    <td>{{$val['goods_data']['goods_type_name']}}</td>
                    <td>{{$val['goods_data']['goods_price']}}</td>
                    <td>{{$val['number']}}</td>
                    <td>{{$val['total_price']}}</td>
                    <td>{{$val['amount']}}</td>
                    <td>{{$val['distribution_fee']}}</td>
                    <td>{{$val['water_ticket_deduction']}}</td>
                    <td>{{$val['coupon_deduction']}}</td>
                </tr>
                <?php }?>
                </tbody>
            </table>
        </div>

    </div>
</div>